<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" >
	<ui:composition >
		<ui:param name="idTag" value="#{id}"/>
		<ui:param name="labelTag" value="#{label}"/>
		<ui:param name="valueTag" value="#{value}"/>
		<ui:param name="requiredTag" value="#{required}"/>
		<ui:param name="renderedTag" value="#{empty rendered?true:rendered}" />
		<ui:param name="maxValueTag" value="#{empty maxValue?1000000:maxValue}"/>
		<ui:param name="minValueTag" value="#{empty minValue?0:minValue}"/>

		<p:outputLabel value="#{labelTag}:" for="#{idTag}" rendered="#{renderedTag}" style="float:right;"/>
		<p:spinner value="#{valueTag}" id="#{idTag}" max="#{maxValueTag}" min="#{minValueTag}"
		 required="#{requiredTag}" rendered="#{renderedTag}">
		
			<ui:insert/>
		</p:spinner>
		<p:message for="#{idTag}" rendered="#{renderedTag}" display="icon"/>
	</ui:composition>
</html>